package org.example.exp3.exam4;

public class RoomBLight {
   private boolean state;
   
   public void switchState() {
      state = !state;
      System.out.println("RoomBLight的开关状态为：" + state);
   }
}